package com.zxx.pattern.buildPattern.build4_ZZ;

/**
 * Director4 监工类：
 * @author zxx on 2020/12/11
 */
public class Director4 {

    private Builder4 builder;

    public Director4(Builder4 builder) {
        this.builder = builder;
    }

    public void construct() {
        String[] items1 = new String[]{"奏国歌", "升国旗"};
        String[] items2 = new String[]{"观众鼓掌", "有序撤离"};

        builder.makeTitle("今日头像");
        builder.makeString("毕业典礼");
        builder.makeItems(items1);

        builder.makeString("典礼结束");
        builder.makeItems(items2);

        builder.close();
    }

}
